package com.devp.config;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * create by yongli on 2021-10-08 18:06
 */

public class MySelector implements ImportSelector {
    @Override
    public String[] selectImports(AnnotationMetadata annotationMetadata) {

        //  加载响应的bean，和使用@Bean的注解效果差不多，但是其使用情况差别较大
        return new String[]{
                ConfigurationTest.class.getName()
        };
    }
}
